using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace Scenario.Modeler.Forms
{
	/// <summary>
	/// Descrizione di riepilogo per XSLTFile.
	/// </summary>
	public class XSLTFile : System.Windows.Forms.Form
	{
		public bool SaveXSLT = false;

		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		public System.Windows.Forms.TextBox txtName;
		public System.Windows.Forms.ComboBox cmbContexts;
		public System.Windows.Forms.TextBox txtXSLT;
		private System.Windows.Forms.Panel panel2;
		private System.Windows.Forms.Button btnCancel;
		private System.Windows.Forms.Button btnSave;
		private System.Windows.Forms.Button btnCheck;
		private System.Windows.Forms.Label FileName;
		public System.Windows.Forms.TextBox txtFileName;
		/// <summary>
		/// Variabile di progettazione necessaria.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public XSLTFile()
		{
			//
			// Necessario per il supporto di Progettazione Windows Form
			//
			InitializeComponent();

			//
			// TODO: aggiungere il codice del costruttore dopo la chiamata a InitializeComponent
			//
			this.cmbContexts.Items.Add ( "General");
			this.cmbContexts.Items.Add ( "Process");
			this.cmbContexts.Items.Add ( "Activities");
			this.cmbContexts.Items.Add ( "Activity");
			this.cmbContexts.Items.Add ( "Attributes");
			this.cmbContexts.Items.Add ( "Attribute");
			this.cmbContexts.Items.Add ( "Transitions");
			this.cmbContexts.Items.Add ( "Transition");
		}

		/// <summary>
		/// Pulire le risorse in uso.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Codice generato da Progettazione Windows Form
		/// <summary>
		/// Metodo necessario per il supporto della finestra di progettazione. Non modificare
		/// il contenuto del metodo con l'editor di codice.
		/// </summary>
		private void InitializeComponent()
		{
			this.label1 = new System.Windows.Forms.Label();
			this.txtName = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.cmbContexts = new System.Windows.Forms.ComboBox();
			this.txtXSLT = new System.Windows.Forms.TextBox();
			this.panel2 = new System.Windows.Forms.Panel();
			this.btnCancel = new System.Windows.Forms.Button();
			this.btnSave = new System.Windows.Forms.Button();
			this.btnCheck = new System.Windows.Forms.Button();
			this.FileName = new System.Windows.Forms.Label();
			this.txtFileName = new System.Windows.Forms.TextBox();
			this.panel2.SuspendLayout();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 16);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(1160, 24);
			this.label1.TabIndex = 0;
			this.label1.Text = "Check Name";
			// 
			// txtName
			// 
			this.txtName.Location = new System.Drawing.Point(8, 40);
			this.txtName.Name = "txtName";
			this.txtName.Size = new System.Drawing.Size(1160, 22);
			this.txtName.TabIndex = 1;
			this.txtName.Text = "";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(8, 80);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(520, 24);
			this.label2.TabIndex = 2;
			this.label2.Text = "Contesto";
			// 
			// cmbContexts
			// 
			this.cmbContexts.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cmbContexts.Location = new System.Drawing.Point(8, 96);
			this.cmbContexts.Name = "cmbContexts";
			this.cmbContexts.Size = new System.Drawing.Size(480, 24);
			this.cmbContexts.TabIndex = 3;
			// 
			// txtXSLT
			// 
			this.txtXSLT.Location = new System.Drawing.Point(8, 136);
			this.txtXSLT.Multiline = true;
			this.txtXSLT.Name = "txtXSLT";
			this.txtXSLT.Size = new System.Drawing.Size(1216, 464);
			this.txtXSLT.TabIndex = 4;
			this.txtXSLT.Text = "";
			// 
			// panel2
			// 
			this.panel2.Controls.Add(this.btnCheck);
			this.panel2.Controls.Add(this.btnCancel);
			this.panel2.Controls.Add(this.btnSave);
			this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.panel2.Location = new System.Drawing.Point(0, 635);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(1264, 48);
			this.panel2.TabIndex = 16;
			// 
			// btnCancel
			// 
			this.btnCancel.Location = new System.Drawing.Point(584, 8);
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.Size = new System.Drawing.Size(72, 40);
			this.btnCancel.TabIndex = 10;
			this.btnCancel.Text = "Cancel";
			this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
			// 
			// btnSave
			// 
			this.btnSave.Location = new System.Drawing.Point(384, 8);
			this.btnSave.Name = "btnSave";
			this.btnSave.Size = new System.Drawing.Size(80, 40);
			this.btnSave.TabIndex = 9;
			this.btnSave.Text = "Save";
			this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
			// 
			// btnCheck
			// 
			this.btnCheck.Location = new System.Drawing.Point(480, 8);
			this.btnCheck.Name = "btnCheck";
			this.btnCheck.Size = new System.Drawing.Size(75, 32);
			this.btnCheck.TabIndex = 11;
			this.btnCheck.Text = "Check";
			this.btnCheck.Click += new System.EventHandler(this.btnCheck_Click);
			// 
			// FileName
			// 
			this.FileName.Location = new System.Drawing.Point(536, 72);
			this.FileName.Name = "FileName";
			this.FileName.Size = new System.Drawing.Size(240, 16);
			this.FileName.TabIndex = 17;
			this.FileName.Text = "label3";
			// 
			// txtFileName
			// 
			this.txtFileName.Location = new System.Drawing.Point(536, 88);
			this.txtFileName.Name = "txtFileName";
			this.txtFileName.Size = new System.Drawing.Size(536, 22);
			this.txtFileName.TabIndex = 18;
			this.txtFileName.Text = "";
			// 
			// XSLTFile
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
			this.ClientSize = new System.Drawing.Size(1264, 683);
			this.Controls.Add(this.txtFileName);
			this.Controls.Add(this.FileName);
			this.Controls.Add(this.panel2);
			this.Controls.Add(this.txtXSLT);
			this.Controls.Add(this.cmbContexts);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.txtName);
			this.Controls.Add(this.label1);
			this.Name = "XSLTFile";
			this.Text = "XSLTFile";
			this.Load += new System.EventHandler(this.XSLTFile_Load);
			this.panel2.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void XSLTFile_Load(object sender, System.EventArgs e)
		{
			
		}

		private void btnSave_Click(object sender, System.EventArgs e)
		{
			this.Close();
			this.SaveXSLT = true;
		}

		private void btnCancel_Click(object sender, System.EventArgs e)
		{
			this.SaveXSLT = false;
			this.Close();
		}

		private void btnCheck_Click(object sender, System.EventArgs e)
		{
			MessageBox.Show ("TODO");
		}
	}
}
